import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
import { BaseEntity } from "./base.entity";

@Entity({ name: 'User' })
export default class UserEntity extends BaseEntity {
  @PrimaryGeneratedColumn()
  SysID: number;

  @Column({ type: 'varchar', length: 255 })
  OpenID: string;

  @Column({ type: 'varchar', length: 255 })
  NickName: string;

  @Column({ type: 'varchar', length: 50 })
  Birthday: string;

  @Column({ type: 'varchar', length: 25 })
  LunarBirthday: string;

  @Column({ type: 'varchar', length: 25 })
  LunarNumBirthday: string;

  @Column({ type: 'varchar', length: 25 })
  SolarBirthday: string;

  @Column({ type: 'int' })
  LunarOrSolar: number;

  @Column({ type: 'varchar', length: 50 })
  Mobile: string;

  @Column({ type: 'int' })
  Gender: number;

  @Column({ type: 'varchar', length: 10 })
  Horoscope: string;
}